:root {
    --bg-color: #000000;
    --card-bg: rgba(20, 20, 20, 0.95);
    --primary: #8b5cf6;
    --accent: #10b981;
    --text: #ffffff;
    --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-y: auto;
    background: radial-gradient(circle at center, #1a1a1a, #000000);
    position: relative;
}

.lang-btn, .home-btn {
    position: absolute;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 20px;
    transition: 0.3s;
    user-select: none;
    z-index: 1000;
    text-decoration: none;
}
.lang-btn { right: 20px; }
.home-btn { left: 20px; }
.lang-btn:hover, .home-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden { display: none !important; }

h1 {
    text-align: center; margin-bottom: 30px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; color: white; width: 100%;
}
.input-group { margin-bottom: 20px; width: 100%; }
.row { display: flex; gap: 15px; width: 100%; }
label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
input {
    width: 100%; background: #0a0a0a; border: 1px solid #333; color: var(--text);
    padding: 15px; border-radius: 12px; font-size: 1.2rem; outline: none; transition: border-color 0.3s;
}
input:focus { border-color: var(--primary); }

.glow-btn {
    width: 100%; padding: 16px; margin-top: 15px; border: none; border-radius: 12px;
    background: var(--primary); color: white; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); transition: all 0.2s;
    text-transform: uppercase; letter-spacing: 1px;
}
.glow-btn:hover { background: #7c3aed; box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }

.status-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    animation: pulse-glow 2s infinite;
}

.circle-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform-origin: 50% 50%;
    stroke-linecap: round;
}

.bg-ring { opacity: 0.2; }

.timer-display-inner {
    position: absolute;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    font-variant-numeric: tabular-nums;
}

#cycle-info {
    text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px;
}
.controls { display: flex; gap: 15px; width: 100%; }
.secondary-btn {
    flex: 1; background: #111; border: 1px solid #333; color: var(--text-muted);
    padding: 12px; border-radius: 12px; cursor: pointer; font-weight: 500;
    transition: all 0.2s; text-transform: uppercase;
}
.secondary-btn:hover { background: #222; color: white; border-color: #555; }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); transform: scale(1.02); }
    100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
}
@media (max-width: 480px) {
    .container {
        margin-top: 60px;
        padding: 15px;
    }

    .circle-container {
        transform: scale(0.85);
        margin-bottom: 0;
    }

    .timer-display-inner {
        font-size: 3rem;
    }
}