:root {
    --bg-color: #05070a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-accent: #3b82f6;
    --secondary-accent: #8b5cf6;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

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

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

input[type="text"] {
    width: 100%;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-size: 1.25rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus {
    border-color: var(--primary-accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.appraise-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.appraise-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.appraise-btn:active {
    transform: scale(0.98);
}

/* Results Section */
.results-container {
    display: none;
    margin-top: 3rem;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.valuation-display {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.valuation-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.valuation-price {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--success);
    font-variant-numeric: tabular-nums;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.factor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.factor-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-accent);
}

.factor-info h3 {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.factor-info p {
    font-size: 1rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin: 2rem 0;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--primary-accent);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 1; }
}

@media (max-width: 640px) {
    .container { padding: 1rem; }
    .glass-card { padding: 2rem 1.5rem; }
    h1 { font-size: 2.2rem; }
    .valuation-price { font-size: 3rem; }
    .appraise-btn { 
        position: static;
        width: 100%;
        margin-top: 1rem;
        height: 56px;
        justify-content: center;
    }
}
