:root {
    --bg-dark: #0a0f1c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #ec4899;
    --primary-hover: #f472b6;
    --danger: #ef4444;
    --success: #10b981;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.blob {
    position: fixed;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    animation: drift 20s infinite alternate linear;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(236, 72, 153, 0.15);
    top: -100px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.15);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.heartbeat-icon {
    font-size: 2.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.15);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 0.2s both;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

input,
select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.submit-container {
    margin-top: 35px;
    text-align: center;
}

button {
    background: linear-gradient(135deg, var(--primary) 0%, #be185d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(236, 72, 153, 0.4);
}

button:active {
    transform: translateY(0);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    box-shadow: none;
    margin-top: 20px;
    font-size: 1rem;
    max-width: 250px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
    border-color: white;
}

.hidden {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#result-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

#result-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.metric-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.metric-card span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-card strong {
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
}