:root {
    --bg-dark: #0f111a;
    --card-bg: rgba(25, 28, 41, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-1: #8b5cf6;
    --accent-2: #ec4899;
    --accent-3: #3b82f6;
    --primary-btn: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --primary-btn-hover: linear-gradient(135deg, #7c3aed, #db2777);
}

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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background animated orbs */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-1);
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-2);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--accent-3);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* Container & Cards */
.container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card header {
    text-align: center;
    margin-bottom: 30px;
}

.card header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.card header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Forms */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e5e7eb;
}

input[type="text"], input[type="date"], select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

input:focus, select:focus {
    border-color: var(--accent-1);
    background: rgba(0, 0, 0, 0.4);
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

/* Buttons */
button {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-btn);
    color: white;
    margin-top: 30px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent-1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-tertiary:hover {
    color: white;
}

/* Loader */
.loader-container {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: spin 1s linear infinite;
}

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

.loader-container h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.loader-container p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Result Card */
.result-card {
    text-align: center;
}

.result-header h2 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 4px;
}

.result-header h1 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.avatar-display {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    background: linear-gradient(145deg, #2a2d3e, #1a1c29);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.avatar-image-mock {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    background-image: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
}

.saju-summary {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.saju-summary h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent-2);
}

.saju-summary p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* Upsell section */
.upsell-container {
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
    position: relative;
}

.upsell-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #f59e0b, #ef4444);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upsell-container h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.upsell-container p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
