#ucWrap {
    font-family: 'Poppins', sans-serif;
    max-width: 860px;
    margin: 30px auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(102,126,234,0.4);
}

.uc-title {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.uc-sub {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin: 0 0 30px;
    font-size: 0.95rem;
}

.uc-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.uc-box {
    flex: 1;
    position: relative;
}

.uc-box label {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.uc-box input[type="text"],
.uc-box input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.uc-box input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.uc-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}

.uc-cat-label {
    padding: 8px 14px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #f8f8ff;
    border-top: 1px solid #eee;
}

.uc-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s;
}

.uc-item:hover {
    background: #f0f0ff;
    color: #667eea;
}

.uc-badge {
    margin-bottom: 8px;
    min-height: 28px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-tag small {
    font-size: 0.7rem;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
}

.badge-x {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 4px;
}

.badge-x:hover {
    opacity: 1;
}

.uc-result {
    padding: 14px 16px;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.res-val {
    font-size: 1.4rem;
    margin-right: 6px;
}

.res-unit {
    font-size: 0.9rem;
    opacity: 0.9;
}

.uc-swap {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-swap:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(180deg);
}

.uc-btn {
    display: block;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.uc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240,147,251,0.5);
}

.uc-formula {
    margin-top: 16px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    min-height: 20px;
}

/* Scrollbar */
.uc-dropdown::-webkit-scrollbar { width: 6px; }
.uc-dropdown::-webkit-scrollbar-track { background: #f1f1f1; }
.uc-dropdown::-webkit-scrollbar-thumb { background: #667eea; border-radius: 3px; }

/* Mobile */
@media (max-width: 600px) {
    .uc-main {
        flex-direction: column;
    }
    .uc-swap {
        margin: 0 auto;
        transform: rotate(90deg);
    }
    .uc-swap:hover {
        transform: rotate(270deg);
    }
    #ucWrap {
        padding: 24px 16px;
    }
}
