:root {
    --bg-color: #0c0d16;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-color: #7928ca;
    --primary-glow: #ff0080;
    --text-color: #ffffff;
    --text-muted: #8899a6;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-blobs {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    width: 100vw;
    height: 100vh;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate linear;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 20%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
    bottom: 10%;
    right: 20%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #0070f3;
    top: 30%;
    right: 30%;
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.container {
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 10;
}

.card {
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.hidden {
    display: none !important;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #7928ca, #ff0080);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.primary-btn {
    width: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(121, 40, 202, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    transform: none !important;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-glow));
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicator {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

textarea {
    width: 100%;
    min-height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    font-size: 1.1rem;
    resize: none;
    outline: none;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(121, 40, 202, 0.1);
}

.error-text {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0070f3, #7928ca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(0, 112, 243, 0.3);
}

/* Animations */
.animate-in {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
