:root {
    --primary-bg: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gold: #ffd700;
    --accent-blue: #00d4ff;
    --accent-bgl: #3a5aff;
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --font-family: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

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

/* Background Animations */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(58, 90, 255, 0.15) 0%, transparent 40%);
    z-index: -1;
    filter: blur(80px);
    animation: glow-shift 20s infinite alternate linear;
}

@keyframes glow-shift {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.title .accent {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Card Styling */
.converter-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-speed) ease;
}

.converter-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.icon-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
}

.icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.pulsate {
    animation: pulsate 3s infinite ease-in-out;
}

@keyframes pulsate {
    0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
}

input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1.5rem;
    font-weight: 600;
    outline: none;
    transition: all var(--transition-speed) ease;
}

input:focus {
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Hide arrows for Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrows for Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Connector */
.connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--glass-border), transparent);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Conversion Info */
.conversion-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
}

.divider {
    width: 4px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
    opacity: 0.3;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .converter-card {
        padding: 1.5rem;
    }
    
    input {
        font-size: 1.2rem;
    }
}
