:root {
    --bg: #0b0b10;
    --card: #16161e;
    --border: rgba(255,255,255,0.08);
    --accent: #8b5cf6;
    --glow: rgba(139,92,246,0.35);
    --text: #f4f4f5;
    --muted: #71717a;
    --font: system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; width: 100%; overflow: hidden; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(99,102,241,0.12), transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(139,92,246,0.12), transparent 50%);
}

#app { width: 100%; padding: 1.5rem; display: flex; align-items: center; justify-content: center; }

.card {
    background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem;
    padding: 2rem 1.75rem; max-width: 320px; width: 100%; position: relative; overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
    animation: slideUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

.content { position: relative; z-index: 3; text-align: center; }

.icon-wrap {
    width: 56px; height: 56px; margin: 0 auto 1.25rem; margin-top: -0.5rem;
    border-radius: 50%; background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(99,102,241,0.1));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 24px rgba(139,92,246,0.15);
    animation: breathe 4s ease-in-out infinite;
}
.icon-wrap svg { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; margin-bottom: 1.75rem; }

.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    gap: 0.75rem; width: 100%; border: none; border-radius: 0.75rem; padding: 0.875rem 1rem;
    font-size: 0.9375rem; font-weight: 600; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 4px 16px var(--glow); transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    overflow: hidden;
}
.btn::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent);
    pointer-events: none; border-radius: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--glow); filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.label { pointer-events: none; transition: opacity 0.2s; }
.badge { display: inline-flex; align-items: baseline; gap: 0.25rem; font-size: 0.75rem; font-weight: 500; opacity: 0.9; }
.badge .unit { opacity: 0.7; font-weight: 400; }

.overlay {
    position: fixed; inset: 0; background: rgba(11,11,16,0.88); z-index: 100;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.overlay span {
    background: rgba(255,255,255,0.05); padding: 0.75rem 2rem; borderRadius: 2rem;
    border: 1px solid rgba(255,255,255,0.15); font-weight: 600; font-size: 0.875rem;
    user-select: none;
}

.paused * { animation-play-state: paused !important; }
.hidden { display: none !important; }

@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (max-width: 339px) { .card { padding: 1.5rem 1rem; } h1 { font-size: 1.15rem; } p { font-size: 0.8rem; } }
@media (min-width: 600px) { .card { max-width: 360px; padding: 2.25rem 2rem; } }
