:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.15), transparent 30%);
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c084fc, #38bdf8);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 1.8rem;
}

label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

.centered-group>label {
    justify-content: center;
    text-align: center;
}

.platform-selector {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-selector input[type="radio"] {
    display: none;
}

.platform-selector label {
    flex: 1;
    text-align: center;
    justify-content: center;
    margin: 0;
    padding: 10px 5px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.platform-selector input[type="radio"]:checked+label {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    font-weight: 700;
}

.platform-selector label:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

input[type="range"] {
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    margin-top: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-main);
    cursor: pointer;
    border: 3px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.result-box {
    margin-top: 2.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: 16px;
    border: 1px dashed rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.result-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.result-box h3,
.result-box .earnings,
.result-box .disclaimer {
    position: relative;
    z-index: 1;
}

.result-box h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.earnings {
    font-size: 3.5rem;
    font-weight: 700;
    color: #10b981;
    margin: 0.5rem 0;
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s;
}

.disclaimer {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}

.monetization {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 1.2s ease-out;
}

.btn-coffee {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-coffee:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.ad-banner {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.3s, background 0.3s;
}

.ad-banner:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.4);
}

.ad-content strong {
    display: block;
    color: #38bdf8;
    margin-bottom: 0.3rem;
}

.ad-content span {
    font-size: 0.85rem;
    color: var(--text-muted);
}